package com.example.springboot.flowable.listener;

/**
 * @author yuwl
 * @description
 * @since 2024-08-09 15:49
 */
import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;
import org.springframework.stereotype.Component;
@Component("taskCompleteListenerBean")
public class TaskCompleteListener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        System.out.println("Task Completed: " + delegateTask.getName());
        // 添加自定义逻辑
    }
}
